﻿<%@ Page Language="C#" MasterPageFile="~/ComMasterPage.master" AutoEventWireup="true" CodeFile="ComDefault.aspx.cs" Inherits="ComDefault" Title="无锡校园人才网-企业主页" %>
<%@ Register Src="comlogin.ascx" TagName="comlogin" TagPrefix="uc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="headCompany" runat="server">
    <link href="css/default.css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="leftmain">
        <div class="topbox">
            <%--登录--%>
            <div id="loginbox" class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">企业登录</span>
                </div>
                <uc1:comlogin ID="comlogin2" runat="server" />
            </div>
            <%--最新招聘会信息--%>
            <div class="leftBox">
                <div class="loginChioce">
                    <span class="leftTop">招聘会</span>
                    <a class="more" href="WantMeet.aspx" target="_blank"><span>more》</span></a>
                </div>
                <div>
                    <marquee behavior="scroll" onfocus="stop();" onmouseover="stop();" onmouseout="start();" atomicselection="False" direction="up" height="300px" scrollamount="1">
                        <asp:DataList id="DataList1"  HorizontalAlign="left" DataSourceID="SqlDataSource4" DataKeyField="wmid" runat="server">
                            <ItemTemplate>
                                <asp:Image id="Image2" runat="server" __designer:wfdid="w29" ImageUrl="~/images/rss.gif" Width="10px" Height="10px"></asp:Image>
                                <asp:LinkButton id="LinkButton1" runat="server" Text='<%# Bind("wmititle") %>' __designer:wfdid="w30" onclientclick='<%# "window.showModalDialog(\"WantMeetInfo.aspx?wmid="+Eval("wmid")+"\")" %>'></asp:LinkButton> 
                            </ItemTemplate>
                        </asp:DataList></marquee>
                    <asp:SqlDataSource ID="SqlDataSource4" runat="server" SelectCommand="SELECT * FROM [WantMeetInfo]" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"></asp:SqlDataSource>
                </div>
            </div>
        </div>
    </div>

    <div class="rightmain">
        <div class="scrollPic">
            <!-- 代码 开始 -->
            <script type="text/javascript" language='javascript'>
                linkarr = new Array();
                picarr = new Array();
                textarr = new Array();
                var swf_width = 400;
                var swf_height = 200;
                //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
                var configtg = '0xffffff|0|0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|2|3|1|_blank';
                var files = "";
                var links = "";
                var texts = "";
                //这里设置调用标记
                linkarr[1] = "Prajob.aspx";
                picarr[1] = "images/com/20140122135757.gif";
                textarr[1] = " 另类就业";
                linkarr[2] = "http://www.17sucai.com";
                picarr[2] = "images/com/20140213165708.gif";
                textarr[2] = " 标题2标题2标题2标题2";
                linkarr[3] = "http://www.17sucai.com";
                picarr[3] = "images/com/20140214172747.gif";
                textarr[3] = " 标题3标题3标题3标题3";
                linkarr[4] = "JLMake.aspx";
                picarr[4] = "images/com/20140217152358.gif";
                textarr[4] = "一分钟填写简历";

                for (i = 1; i < picarr.length; i++) {
                    if (files == "") files = picarr[i];
                    else files += "|" + picarr[i];
                }
                for (i = 1; i < linkarr.length; i++) {
                    if (links == "") links = linkarr[i];
                    else links += "|" + linkarr[i];
                }
                for (i = 1; i < textarr.length; i++) {
                    if (texts == "") texts = textarr[i];
                    else texts += "|" + textarr[i];
                }
                document.write('<object width="' + swf_width + '" height="' + swf_height + '">');
                document.write('<param name="movie" value="images/com/bcastr3.swf"><param name="quality" value="high">');
                document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                document.write('<param name="FlashVars" value="bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '">');
                document.write('<embed src="images/com/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '& menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
                document.write('</object>');
            </script>
            <!-- 代码 结束 -->
        </div>

        <div id="searchbox">
            <div class="rightHeader">
                <div class="rightHLeft"><span class="rightHeaderTitle">职位搜索</span></div>
                <div class="rightHMiddle"></div>
                <div class="rightHRight"></div>
            </div>
            <div style="margin-top: 15px;">
                <table style="width: 353px; height: 136px; color: #707070;">
                    <tr>
                        <td style="width: 85px; text-align: right; height: 20px;">行业类别：</td>
                        <td style="width: 100px; height: 20px;">
                            <asp:DropDownList ID="ddlhy" runat="server" DataSourceID="SqlDataSource7" DataTextField="trname" DataValueField="trid" Width="162px">
                            </asp:DropDownList>
                        </td>
                        <td style="width: 83px; height: 20px;"></td>
                    </tr>
                    <tr>
                        <td style="width: 85px; text-align: right; height: 24px;">招聘类别：
                        </td>
                        <td style="width: 100px; height: 24px;">
                            <asp:DropDownList ID="ddlzp" runat="server" DataSourceID="SqlDataSource6" DataTextField="jcname"
                                DataValueField="jcid">
                            </asp:DropDownList>
                        </td>
                        <td style="text-align: center;">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtpoint"
                                ErrorMessage="请输入关键字"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: right; height: 27px;">
                            <asp:TextBox ID="txtpoint" runat="server" Width="233px" SkinID="txt" Font-Overline="False"
                                Font-Underline="False" Height="18px" BackColor="White" Font-Size="14px" Font-Names="Algerian"
                                ForeColor="Black" Style="vertical-align: middle;">请输入关键词</asp:TextBox>
                        </td>
                        <td style="width: 83px; text-align: right; height: 27px;">
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/sousuo.png"
                                OnClick="ImageButton1_Click1" Height="27px" Width="76px" />&nbsp;
                        </td>
                    </tr>
                </table>
                <asp:SqlDataSource ID="SqlDataSource6" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                    SelectCommand="SELECT * FROM [tb_jobclass]"></asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSource7" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                    SelectCommand="SELECT * FROM [tb_trade]"></asp:SqlDataSource>
            </div>
        </div>

        <div id="talent" style="border:1px solid #fff;margin-top:200px;">
            <div class="schjobs">
                <div class="rightHeader1">
                    <div class="rightHLeft"><span class="rightHeaderTitle">人才库</span></div>
                    <div class="rightHMiddle1" style="width:683px;"><a class="moreRight" target="_blank" href="qiyerencaiku.aspx" style="float: right;">more》</a></div>
                    <div class="rightHRight"></div>
                </div>
                <div>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="5" Height="18px"
                        DataSourceID="SqlDataSource1" AllowSorting="True" BackColor="White" BorderColor="White" ForeColor="#333333" GridLines="Horizontal" BorderWidth="1px"
                        Width="770px" ShowHeader="False" EmptyDataText="无">
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <RowStyle ForeColor="#000066" BorderColor="White" />
                        <Columns>
                            <asp:BoundField DataField="pname" HeaderText="姓 名" SortExpression="pname" />
                            <asp:BoundField DataField="psex" HeaderText="性 别" SortExpression="psex" />
                            <asp:BoundField DataField="page" HeaderText="年 龄" SortExpression="page" />
                            <asp:BoundField DataField="pzy" HeaderText="专 业" SortExpression="pzy" />
                            <asp:BoundField DataField="pschool" HeaderText="毕业学校" SortExpression="pschool" />
                        </Columns>
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#E0E0E0" BorderColor="White" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="WhiteSmoke" />
                    </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                    ProviderName="System.Data.SqlClient" SelectCommand="SELECT top 10 [pname], [psex], [page], [pzy], [pschool] FROM [tb_person]"></asp:SqlDataSource>
                &nbsp;
            </div>
        </div>

        <div class="lefinfo">
            <asp:FormView ID="FormView1" runat="server" DataKeyNames="sid"
                DataSourceID="SqlDataSource2">
                <EditItemTemplate>
                    sid:
                <asp:Label ID="sidLabel1" runat="server" Text='<%# Eval("sid") %>' />
                    <br />
                    scontent:
                <asp:TextBox ID="scontentTextBox" runat="server"
                    Text='<%# Bind("scontent") %>' />
                    <br />
                    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
                        CommandName="Update" Text="更新" />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"
                        CausesValidation="False" CommandName="Cancel" Text="取消" />
                </EditItemTemplate>
                <InsertItemTemplate>
                    scontent:
                <asp:TextBox ID="scontentTextBox" runat="server"
                    Text='<%# Bind("scontent") %>' />
                    <br />
                    <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
                        CommandName="Insert" Text="插入" />
                    &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"
                        CausesValidation="False" CommandName="Cancel" Text="取消" />
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="scontentLabel" runat="server" Text='<%# Bind("scontent") %>' />
                </ItemTemplate>
            </asp:FormView>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server"
                ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                SelectCommand="SELECT * FROM [synopsis]"></asp:SqlDataSource>
            <br />
        </div>
        
    </div>
</asp:Content>

